package com.xysq.activity;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageButton;

import com.xysq.lemon.R;

import butterknife.InjectView;

/**
 * Created by huangdongkai on 2015/8/13.
 */
public class AgreementActivity extends BaseActivity {
    @InjectView(R.id.webview_details)
    WebView detailsWebView;
    @InjectView(R.id.ibtn_back)
    ImageButton backIbtn;
    public static final String URL = "url";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_agreement);
        String url = getIntent().getStringExtra(URL);
        WebSettings webSettings = detailsWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        detailsWebView.loadUrl(url);
        backIbtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }
}
